package com.ruoyi.caigou.api;

import com.ruoyi.caigou.api.factory.RemoteBuyBackReqFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.caigou.BuyBackReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wangenhao
 * @interfaceName RemoteBuyBackReqService
 * @description
 * @date 2024-10-31 下午4:50
 */
@FeignClient(contextId = "remoteBuyBackReqService", value = ServiceNameConstants.CAIGOU_SERVICE, fallbackFactory = RemoteBuyBackReqFallbackFactory.class)
public interface RemoteBuyBackReqService {

    @PutMapping("/buyBackReq/updateStatusByCode")
    public AjaxResult updateStatusByCode(@RequestBody BuyBackReq buyBackReq);

    @GetMapping("/buyBackReq/info/code")
    public AjaxResult getInfoByCode(@RequestParam("code") String code);
}
